package com.study.common.core.domain.model;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author nizhihao
 * @version 1.0.0
 * @date 2023/11/1 10:32
 */
@Validated
@Data
public class AppEmailLoginBody {

    /**
     * 邮箱
     */
    @NotNull
//    @Pattern(regexp = "[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)*", message = "邮箱校验不通过")
    private String email;

    /**
     * 邮箱密码（加密）
     */
    @NotNull
    private String password;

    /**
     * App类型 1:IOS，2安卓
     */
    @NotNull
    private Integer appType;


}
